Integrand size = 30, antiderivative size = 111 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=-\frac {6 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 B \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {6 C \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4149, 2827, 2716, 2719, 2720} \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 B \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}-\frac {6 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {6 C \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}} \]
[In]
[Out]
Rule 2716
Rule 2719
Rule 2720
Rule 2827
Rule 4149
Rubi steps \begin{align*} \text {integral}& = \int \frac {C+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x)} \, dx \\ & = B \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x)} \, dx+C \int \frac {1}{\cos ^{\frac {7}{2}}(c+d x)} \, dx \\ & = \frac {2 C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 B \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {1}{3} B \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\frac {1}{5} (3 C) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 B \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {6 C \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}-\frac {1}{5} (3 C) \int \sqrt {\cos (c+d x)} \, dx \\ & = -\frac {6 C E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 B \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 B \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {6 C \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}} \\ \end{align*}
Time = 0.53 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.86 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\frac {-18 C \cos ^{\frac {3}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+10 B \cos ^{\frac {3}{2}}(c+d x) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+10 B \sin (c+d x)+9 C \sin (2 (c+d x))+6 C \tan (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(501\) vs. \(2(147)=294\).
Time = 2.30 (sec) , antiderivative size = 502, normalized size of antiderivative = 4.52
method | result | size |
default | \(-\frac {\sqrt {-\left (-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (\frac {2 C \left (24 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-12 \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-24 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+12 \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+8 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-3 \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{5 \left (8 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}-12 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+6 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+2 B \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{6 \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-\frac {1}{2}\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(502\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 188, normalized size of antiderivative = 1.69 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\frac {-5 i \, \sqrt {2} B \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 i \, \sqrt {2} B \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 9 i \, \sqrt {2} C \cos \left (d x + c\right )^{3} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 9 i \, \sqrt {2} C \cos \left (d x + c\right )^{3} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + 2 \, {\left (9 \, C \cos \left (d x + c\right )^{2} + 5 \, B \cos \left (d x + c\right ) + 3 \, C\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{15 \, d \cos \left (d x + c\right )^{3}} \]
[In]
[Out]
\[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int \frac {\left (B + C \sec {\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\cos ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )}{\cos \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )}{\cos \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Time = 18.67 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.78 \[ \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2\,B\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,C\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {5}{4},\frac {1}{2};\ -\frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{5\,d\,{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
[In]
[Out]